package com.four.bmm.entity;

import java.io.Serializable;

/**
 * 回帖实体类
 *
 * @author MSJ
 */
public class Reply implements Serializable {
    private int rid;
    private News newsid;    //回复哪个新闻
    private User answerid; //谁回复的
    private User sbid;     //回复某个人，那个人的id
    private String rcontent;
    private String replytime;

    public Reply() {
    }

    public Reply(News newsid, User answerid, String rcontent, String replytime) {
        this.newsid = newsid;
        this.answerid = answerid;
        this.rcontent = rcontent;
        this.replytime = replytime;
    }

    public Reply(int rid, News newsid, User answerid, User sbid, String rcontent, String replytime) {
        this.rid = rid;
        this.newsid = newsid;
        this.answerid = answerid;
        this.sbid = sbid;
        this.rcontent = rcontent;
        this.replytime = replytime;
    }

    public int getRid() {
        return rid;
    }

    public void setRid(int rid) {
        this.rid = rid;
    }

    public News getNewsid() {
        return newsid;
    }

    public void setNewsid(News newsid) {
        this.newsid = newsid;
    }

    public User getAnswerid() {
        return answerid;
    }

    public void setAnswerid(User answerid) {
        this.answerid = answerid;
    }

    public User getSbid() {
        return sbid;
    }

    public void setSbid(User sbid) {
        this.sbid = sbid;
    }

    public String getRcontent() {
        return rcontent;
    }

    public void setRcontent(String rcontent) {
        this.rcontent = rcontent;
    }

    public String getReplytime() {
        return replytime;
    }

    public void setReplytime(String replytime) {
        this.replytime = replytime;
    }
}
